/*
 *  作业3
 */
package com.stage_1.module_4;

public class RunTest {
    public static void main(String[] args){

        Runner r = new Runner(100);
        Thread t1 = new Thread(r);
        Thread t2 = new Thread(r);
        Thread t3 = new Thread(r);

        System.out.println("开始模拟卖票……");
        t1.start();
        t2.start();
        t3.start();

        try {
            t1.join();
            t2.join();
            t3.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("模拟卖票结束！");
    }

}
